package com.cdtye.shuoh.config.mybatis;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * mybatisPlus配置
 * @author LuCong
 * @date 2019/8/12
 */

/**
 * 配置分页插件
 *
 */
@Configuration
public class MybatisPlusConfig {
    public MybatisPlusConfig() {
    }

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}

